package com.example.usbhidtool.tcp;


/**
 * 客户端通用消息格式
 */
public class ClientMessage extends AbsMessage {
    /**
     * 功能码
     * 0 心跳
     * 1 登陆
     * 2 登出
     * 3 语音播报消息（在通知栏也显示）
     * 4 通知栏消息
     */
    private int functionCode;

    private String message;
    private String userId;
    private Integer msgId;
    private String title;

    public Integer getMsgId() {
        return msgId;
    }

    public void setMsgId(Integer msgId) {
        this.msgId = msgId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public int getFunctionCode() {
        return functionCode;
    }

    public void setFunctionCode(int functionCode) {
        this.functionCode = functionCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "ClientMessage{" +
                "functionCode=" + functionCode +
                ", message='" + message + '\'' +
                ", userId='" + userId + '\'' +
                ", msgId=" + msgId +
                ", title='" + title + '\'' +
                '}';
    }
}
